<?php
/**
 * Created by PhpStorm.
 * User: wangan
 * Date: 2018/7/24
 * Time: 16:47
 */

namespace app\commom\lib;


class Util
{
    public static function responseFormat($code, $msg='', $data=[]){
        $res['code'] = $code;
        $res['msg'] = $msg;
        $res['data'] = $data;
        echo json_encode($res);
    }
}